package com.atguigu.gulimall.product.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.product.vo.Cart;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.concurrent.ExecutionException;

@FeignClient("gulimall-cart")
public interface CartFeignService {

    @GetMapping("/cartList")
    @ResponseBody
    public R cartList() throws ExecutionException, InterruptedException;
}
